From: Carlos Garnacho Date: Mon, 21 Jan 2019 20:40:59 +0000 (+0100) Subject: keyboard: Fix JS warning X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~28 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bb215966e511083f8145879a292b63c0ae7cd370;p=gnome-shell.git keyboard: Fix JS warning The label field may be empty here (eg. buttons fully styled through css), just resort to an empty string then. --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index cbfdb0914..a37580b32 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -802,7 +802,7 @@ var Keyboard = class Keyboard { let switchToLevel = key.level; let action = key.action; - extraButton = new Key(key.label, []); + extraButton = new Key(key.label || '', []); extraButton.keyButton.add_style_class_name('default-key'); if (key.extraClassName != null)